package com.example.yjhadmin.service;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.yc.yjh.entity.Result;
import com.yc.yjh.entity.Teams;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "yjh-match")
@RequestMapping("/yjhteam/teams")
public interface TeamFeign {
    @RequestMapping("selectTeam")
    List selectTeam();
    @RequestMapping("selectAllTeams")
    PageInfo<Teams> selectAllTeams(@RequestParam int current);
    @RequestMapping("selectTeamsCount")
    Long selectTeamsCount();
    @RequestMapping("selectTeamByName")
    Result selectTeamByName(@RequestParam("name") String name);
}
